package com.ruge.sms.domain.model;

import com.ruge.core.domain.BaseDomain;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author ruge.wu
 * @since 2021/12/14 16:19
 */
@Getter
@Setter
@Builder
@Entity
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "channel")
@org.hibernate.annotations.Table(appliesTo = "channel",comment = "配置-通道管理")
public class Channel  extends BaseDomain implements Serializable {
    @Column(columnDefinition = "varchar(100) comment '通道名称'")
    private String channelName;
    @Column(columnDefinition = "varchar(100) comment '通道平台'")
    private String platform;
    @Column(columnDefinition = "varchar(100) comment '域名'")
    private String domain;
    @Column(columnDefinition = "varchar(100) comment '秘钥id'")
    private String secretId;
    @Column(columnDefinition = "varchar(100) comment '秘钥值'")
    private String secretKey;
    @Column(columnDefinition = "varchar(100) comment '其他配置 json格式'")
    private String other;
    @Column(columnDefinition = "bit comment '是否可用'")
    private Boolean isActive;
}
